package edu.upenn.seas.peerreview.smui.variants

import edu.upenn.seas.peerreview.smui.BSSM

/**
 * A trait that causes the state machine to report a "miss" every other attack.
 */
trait HalfMisses extends BattleshipLogicImpl {
  var cheat = false;
  override def firingAt(p:Point, shipList : Set[Ship]) = {
    cheat = !cheat
    if (cheat) (Miss, shipList)
    else super.firingAt(p, shipList)
  }
} 
